<%@ page import="ar.com.photo_admin.domain.PhotoGroup" %>



<div class="fieldcontain ${hasErrors(bean: photoGroupInstance, field: 'quantity', 'error')} required">
	<label for="quantity">
		<g:message code="photoGroup.quantity.label" default="Quantity" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="quantity" min="0" required="" value="${fieldValue(bean: photoGroupInstance, field: 'quantity')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: photoGroupInstance, field: 'purchaseOrder', 'error')} ">
	<label for="purchaseOrder">
		<g:message code="photoGroup.purchaseOrder.label" default="Purchase Order" />
		
	</label>
	<g:select id="purchaseOrder" name="purchaseOrder.id" from="${ar.com.photo_admin.domain.PurchaseOrder.list()}" optionKey="id" value="${photoGroupInstance?.purchaseOrder?.id}" class="many-to-one" noSelection="['null': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: photoGroupInstance, field: 'photos', 'error')} ">
	<label for="photos">
		<g:message code="photoGroup.photos.label" default="Photos" />
		
	</label>
	<g:select name="photos" from="${ar.com.photo_admin.domain.Photo.list()}" multiple="multiple" optionKey="id" size="5" value="${photoGroupInstance?.photos*.id}" class="many-to-many"/>
</div>

<div class="fieldcontain ${hasErrors(bean: photoGroupInstance, field: 'size', 'error')} required">
	<label for="size">
		<g:message code="photoGroup.size.label" default="Size" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="size" name="size.id" from="${ar.com.photo_admin.domain.Size.list()}" optionKey="id" required="" value="${photoGroupInstance?.size?.id}" class="many-to-one"/>
</div>

